{{ define "content" }}

<article class="content article article-categories article-type-list" itemscope="">
  <header class="article-header">
    <h1 itemprop="name" class="hidden-xs">分类: {{ .Title }}</h1>
    <p class="hidden-xs">共 {{ len .Data.Pages }} 篇文章</p>
    <nav role="navigation" id="nav-main" class="okayNav">
      <ul>
        <li><a href="/categories">All</a></li>
        {{ range $.Site.Taxonomies.categories.ByCount }}
            {{ if .Name }}
            <li><a href="/categories/{{ .Name | urlize}}/"> {{ .Name }}</a>
            {{ end }}
        {{ end}}
        </ul>
    </nav>
  </header>

  <div class="article-body">
    <div class="panel panel-default b-no">
      <div class="panel-heading" role="tab">
        <h4 class="panel-title">
          <a data-toggle="collapse" href="#collapse{{ .Title }}" aria-expanded="true">
            <i class="icon icon-folder text-active"></i><i class="icon icon-folder-open text"></i>
            {{ .Title }}
          </a>
          <small class="text-muted">(Total  {{ len .Pages }} articles)</small>
        </h4>
      </div>
      <div id="collapse{{ .Title }}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading{{ .Title }}">
        <div class="panel-body">
          <div class="collection">
            {{ range .Pages }}
              <a href="{{ .URL }}" class="collection-item" target="_blank" itemprop="url">
                    <time>{{.Date.Format  "2006-01-02" }}</time>
                    <span>&nbsp;&nbsp;&nbsp;</span>{{ .Title }}
                  </a>
            {{ end }}
          </div>
        </div>
      </div>
    </div>
  </div>
</article>
{{ end }}